/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.sais.noisylibrary.card;

/**
 *
 * @author Romulus
 */
public class AttributeCard extends Card {

    private int mAttribute;

    public AttributeCard(String... data) {
        mType = ATTRIBUTE;
        mName = data[1];
        mAttribute = ATTRIBUTES.indexOf(data[3]);
    }

    public char toChar() {
        return ATTRIBUTES.charAt(mAttribute);
    }

    public String getFullString() {
        return toString();
    }

    public int getAttribute() {
        return mAttribute;
    }

    @Override
    public String toString() {
        return mName + "(" + toChar() + ")";
    }

}
